//调用接口配置文件
import { request } from 'config/request'
// 定义接口
export async function queryAllAddress(params) {
    return request({
        url: 'admin/address/queryAllAddress',
        method: 'GET',
        data: params,
    });
};
//城市与区域级联
export async function regionArea(params) {
    console.log(params)
    return request({
        url: `admin/qrcode/region/area/tree/get`,
        method: 'GET',
        data: params,
        headers:{
            "Content-type":"application/json",
        }
    });
};
//查询城市
export async function getProduct(params) {
    console.log(params)
    return request({
        url: `admin/qrcode/products/by-city`,
        method: 'GET',
        data: params,
        headers:{
            "Content-type":"application/json",
        }
    });
};

//传播渠道汇总
export async function getReport(params) {
    return request({
        url: 'admin/qrcode/statistics/querySummary',
        method: 'POST',
        data: params,
    });
};
// 统计图

export async function getChart(params) {
    return request({
        url: 'admin/qrcode/statistics/queryGraph',
        method: 'POST',
        data: params,
    });
};
export async function getContrast(params) {
    return request({
        url: 'admin/qrcode/statistics/queryContrast',
        method: 'POST',
        data: params,
    });
};
export async function down(params) {
    return request({
        url: 'admin/qrcode/statistics/export',
        method: 'POST',
        data: params,
    });
};
